-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement procref
instruction
#1113
Conversation
ca0f1c3
to
9905534
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you! I left one small comment (with a bigger question) inline.
Other than that, there are two more things we should do:
- Update the code for formatted output to print
procref
instruction correctly (see herehttps://github.com/0xPolygonMiden/miden-vm/blob/next/assembly/src/ast/nodes/format.rs#L94)). - Add an integration test to make sure we actually put correct MAST root onto the stack.
ee2ef83
to
05834ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you! I left a few more small comments inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good! Thank you!
This PR adds a new
procref
instruction.It is used as
procref.<procedure_name>
and it puts a hash of a given procedure onto the stack using fourPush
instructions.TODO:
procref
instruction.